package com.lagou.page.feign;

import com.lagou.commen.pojo.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 李树飞
 */
@FeignClient(name = "lagou-service-product",fallback = ProductFeignFallBack.class)
public interface ProductFeign {

    @GetMapping("/product/query/{id}")
    public Products findById(@PathVariable Integer id);

    @GetMapping("/service/port")
    public String getPort();
}
